package com.buba.service.impl;

import com.buba.dao.BranchInfoMapper;
import com.buba.pojo.BranchInfo;
import com.buba.service.BranchInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 杨柳
 * @title BranchInfoServiceImpl
 * @date 2024/4/18 10:11
 */
@Service
public class BranchInfoServiceImpl implements BranchInfoService {
    @Autowired
    private BranchInfoMapper branchInfoMapper;

    @Override
    public long addBranchInfo(Map<String, Object> map) {
        return branchInfoMapper.addBranchInfo(map);
    }

    @Override
    public List<BranchInfo> selBranchInfo() {
        return branchInfoMapper.selBranchInfo();
    }

    @Override
    public long delBranchInfo(Integer branchId) {
        return branchInfoMapper.delBranchInfo(branchId);
    }

    @Override
    public long updBranchInfo(Map<String, Object> map) {
        return branchInfoMapper.updBranchInfo(map);
    }
}
